package http.HttpUtil;

import java.net.Proxy;

public class RequestPkg {
	/** url鍦板潃 **/
	private String url = null;
	/** 鍙戦�鏁版嵁 **/
	private byte[] sendData;
	/** 鏂规硶 **/
	private String method;
	/** 妯″紡 **/
	private int schema;
	/** 鏄惁涓簑ifi **/
	private boolean isWifi;
	/** 鏄惁涓轰唬鐞�**/
	private boolean isProxy = false;

	private Proxy proxy = null;

	/**
	 * 鏄惁鐢ㄤ唬鐞�
	 * 
	 * @return
	 */
	public boolean isProxy() {
		if (this.proxy != null)
			this.isProxy = true;
		return this.isProxy;
	}

	public Proxy getProxy() {
		return this.proxy;
	}

	public void setProxy(Proxy proxy) {
		this.proxy = proxy;
	}

	/***
	 * 鏄惁涓簑ifi
	 * 
	 * @return
	 */
	public boolean isWifi() {
		return this.isWifi;
	}

	public void setWifi(boolean isWifi) {
		this.isWifi = isWifi;
	}

	/***
	 * url
	 * 
	 * @return
	 */
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	/***
	 * 鍙戦�鏁版嵁
	 * 
	 * @return
	 */
	public byte[] getSendDatas() {
		return this.sendData;
	}

	public void setSendData(byte[] sendData) {
		this.sendData = sendData;
	}

	/***
	 * 鏂规硶
	 * 
	 * @return
	 */
	public String getMethod() {
		return this.method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	/***
	 * 妯″紡
	 * 
	 * @return
	 */
	public int getSchema() {
		return this.schema;
	}

	public void setSchema(int schema) {
		this.schema = schema;
	}
}